@mixin fz-m($fontSize: 16px) {
    font-size: $fontSize;
    font-family: PingFangSC-Medium, 'PingFang SC';
    font-weight: 500;
    color: #33302d;
}

@mixin fz-r($fontSize: 14px) {
    font-size: $fontSize;
    font-family: PingFangSC-Regular, 'PingFang SC';
    font-weight: 400;
    color: #33302d;
}

.d-flex {
    display: flex;
}

:deep(.el-date-editor .el-range-input) {
    text-align: left;
    padding-left: 6px;
}

:deep(.el-form-item__content) {
    display: block;
    flex: none;
    width: 400px;
}

:deep(.table_group) {
    .el-form-item__content {
        width: 1200px;
    }
}

:deep(.el-form-item:last-of-type) {
    .el-form-item__content {
        width: auto;

        .el-table .el-form-item__content {
            width: 100%;
        }
    }
}

:deep(.el-cascader) {
    width: 100%;
}

:deep(.el-date-editor) {
    width: 100%;
    margin-bottom: 24px;
}

:deep(.el-input-number .el-input__inner) {
    text-align: left;
}

:deep(.el-table) {
    .cell {
        overflow: visible;

        // .el-form-item__error {
        //   top: 36px;
        // }
    }

    .el-table__cell {
        padding: 18px 0;
    }
}

.el-button--small {
    padding: 0 16px;
    height: 24px;
    min-height: 24px;
    line-height: 24px;

    @include fz-r(13px);

    &.is-disabled {
        color: #969696;
    }
}

.el-button.add-item {
    margin-top: 16px;
}

.form-title {
    margin-bottom: 25px;

    @include fz-m;
}

.form-batch-switch {
    line-height: normal;

    > span {
        @include fz-r;

        margin-right: 12px;
    }
}

:deep(.el-form-item__label) {
    @include fz-r;
}

.area-name {
    :deep(.el-input__inner) {
        height: 32px;
        line-height: 32px;
        border-radius: 2px;
    }
}

:deep(.area-code) {
    .el-input {
        line-height: 36px;
    }

    .el-input__inner {
        line-height: 36px !important;
        border-radius: 2px;
    }
}

.group-info {
    position: relative;
    width: 180px;
    box-sizing: border-box;
    display: flex;
    padding: 6px;
    background: #fff;
    border-radius: 2px;
    border: 1px solid #eaeaea;

    @include fz-r;

    img:not(.close-icon) {
        margin-right: 10px;
        width: 36px;
        height: 36px;
    }

    .close-icon {
        cursor: pointer;
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
    }

    .group-name {
        width: 96px;
        line-height: normal;

        div {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        div:last-child {
            font-size: 12px;
            color: #969696;
        }
    }
}

.red {
    color: red;
}

.switch_box {
    display: flex;
    align-items: center;
    color: #9a9a9a;
    font-size: 12px;

    .text {
        margin-left: 10px;
    }
}

.select_button_box {
    margin-top: 16px;
}
